package pojo;

import java.util.Date;

// 奖惩记录类（RewardPunishmentRecord）
public class RewardPunishmentRecord {
    private int recordId;
    private int studentId;
    private String rpType; // '奖励' or '处分'
    private String reason;
    private Date rpDate;
    private String number;
    private String name;
    private String ClassName;
    public RewardPunishmentRecord() {
    }

    public RewardPunishmentRecord(int recordId, int studentId, String rpType, String reason, Date rpDate) {
        this.recordId = recordId;
        this.studentId = studentId;
        this.rpType = rpType;
        this.reason = reason;
        this.rpDate = rpDate;
    }
    // getters and setters

    public String getClassName() {
        return ClassName;
    }

    public RewardPunishmentRecord setClassName(String className) {
        ClassName = className;
        return this;
    }

    public String getName() {
        return name;
    }

    public RewardPunishmentRecord setName(String name) {
        this.name = name;
        return this;
    }

    public String getNumber() {
        return number;
    }

    public RewardPunishmentRecord setNumber(String number) {
        this.number = number;
        return this;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getRpType() {
        return rpType;
    }

    public void setRpType(String rpType) {
        this.rpType = rpType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public java.sql.Date getRpDate() {
        java.sql.Date date = new java.sql.Date(this.rpDate.getTime());
        return date;
    }

    public void setRpDate(Date rpDate) {
        this.rpDate = rpDate;
    }
}